#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT(acel, 1.0.0, 'kuerant@gmail.com')
AC_CONFIG_SRCDIR([src/acel/addr.cpp])
AC_CONFIG_HEADER([include/config.h])

AM_INIT_AUTOMAKE([-Wall -Werror foreign])


# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_AWK
AC_PROG_RANLIB
AC_PROG_MAKE_SET


# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_BIGENDIAN
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T

# Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([gethostbyaddr gethostbyname gethostname inet_ntoa memset strchr strdup strrchr strtol])

AC_CONFIG_FILES([Makefile
                 src/Makefile
                 src/acel/Makefile
                 test/Makefile
                 test/func/Makefile
				])
 
AC_OUTPUT
